package com.peng.mybatis.scripting.xmltags;

import lombok.AllArgsConstructor;

import java.util.List;

/**
 * 混合sql节点
 */
@AllArgsConstructor
public class MixedSqlNode implements SqlNode {

    private List<SqlNode> contents;

    @Override
    public boolean apply(DynamicContext dynamicContext) {
        contents.forEach(node -> node.apply(dynamicContext));
        return true;
    }

}
